package nancal.mp.entity.dev

import nancal.mp.entity.base.TestBase
import nbcp.base.extend.FullName
import org.junit.jupiter.api.Test
import java.io.File
import java.nio.charset.StandardCharsets


class CodeCheckTest : TestBase() {

    @Test
    fun checkAuthor() {
        File("D:\\boe\\uc-api").walkBottomUp().forEach {
            if (!it.name.endsWith(".java")) {
                return@forEach
            }

            var content = it.readText(StandardCharsets.UTF_8);
            if (!content.contains("@author")) {
                println("file:///" + it.FullName.replace("\\", "/"))
            }
            return@forEach;
        }
    }


}